<?php
/**
 * Create By: PhpStorm
 * User: niechenguang
 * File: Circle.php
 * Date: 2017/1/2
 * Time: 21:45
 */

namespace app\api\controller;

use notification\Notification;
use think\Request;

class PushMsg
{

    protected $param;

    public function __construct()
    {
        $this->param = Request::instance()->param();
    }

    /**
     * 广播消息
     *
     * @return array
     */
    public function broadcast()
    {
        $obj = new Notification();
        return $obj->sendIOSBroadcast($this->param['alert']);
    }

}
